package redemo5.controller1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import redemo5.service1.IUserService;
import redemo5.service1.UserServicelmpl;

@Component
public class UserController {
    @Autowired
    private IUserService userService;

public void Login(){
    System.out.println("UserController收到用户请求,要求登陆");
    boolean success =userService.login("张三","123456");
    if(success){
        System.out.println("UserController:回馈用户登录成功提示");
    }else{
        System.out.println("UserController:回馈用户登录失败提示");
    }

}

}
